-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS updates to attachment type #1325
base: main
Are you sure you want to change the base?
Conversation
}), | ||
}); | ||
// eslint-disable-next-line no-instanceof/no-instanceof | ||
if (content instanceof Blob) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait sorry why do we need this vs. just accepting UInt8Array
again?
I think the content
typing doesn't include Blob
here?
I know I said earlier we shouldn't do this - but I wonder if there's a way we can accept a Node Buffer
here. Will talk to you in a sec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also - can this piggyback off the new method you created below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because attachment could be a Blob now (from you: https://langchain.slack.com/archives/D076HL2E77B/p1733946087301879)
No description provided.